﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GrpcLoginStatus = UserCenter.Grpc.LoginStatus;

namespace UserCenter.Console.Sdk.Results
{
    public enum LoginStatus
    {
        Enable,
        Disable
    }

    public static class LoginStatusUtils
    {
        public static LoginStatus ToResultStatus(this GrpcLoginStatus status)
        {
            return (LoginStatus)Enum.Parse(typeof(LoginStatus), status.ToString());
        }
    }
}
